/**
 * @author: wq
 * @Date: 2017/8/8
 * @Time: 10:10
 * <p>
 * Description:
 *          ***
 */
import axios from 'axios';
import { API_NEW_VERSION } from '../api';

const ORDERS_ORDERDISTINGUISHCONFIGS = API_NEW_VERSION + 'orders/orderDistinguishConfig';
/**
 * 保存分单规则
 * @param params
 * @returns {AxiosPromise}
 */
export const saveOrderDistinguishConfig = (params) => {
  return axios.post(ORDERS_ORDERDISTINGUISHCONFIGS, params);
};
/**
 * 获取分单规则
 * @param params
 * @returns {AxiosPromise}
 */
export const get = (params) => {
  return axios.get(ORDERS_ORDERDISTINGUISHCONFIGS);
};
